package wyw.sell.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wyw.sell.mapper.SellMapper;
import wyw.sell.service.SellService;

@RequestMapping("/sell")
@RestController
public class SellController {
    @Autowired
    private SellService sellService;

    @Autowired
    private SellMapper sellMapper;
    @RequestMapping("/test")
    public String test(){
        System.out.println(sellService.Final2101ToRes());
        return "ok";

    }

    @RequestMapping("testData")
    public String testData(){
        sellMapper.selectFinalNumber("2020","12","S1920DA");
        return "ok";
    }

    @RequestMapping("calculate")
    public String calculate(){
        sellService.calculate();
        return "ok";
    }
}
